package tt.lab.pmbok.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

@Entity(name="artifact")
public class Artifact {
	private int id;
	private ArtifactTemplate artifactTemplate;
	private ArtifactAttribute artifactAttribute;

	private int artifactId;
	private String artifactAttributeValue;
	
	@Id
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	@ManyToOne() 
	@JoinColumn(name="artifact_template_id")
	public ArtifactTemplate getArtifactTemplate() {
		return artifactTemplate;
	}
	public void setArtifactTemplate(ArtifactTemplate artifactTemplate) {
		this.artifactTemplate = artifactTemplate;
	}
	@ManyToOne()
	@JoinColumn(name="artifact_attribute_id")
	public ArtifactAttribute getArtifactAttribute() {
		return artifactAttribute;
	}
	public void setArtifactAttribute(ArtifactAttribute artifactAttribute) {
		this.artifactAttribute = artifactAttribute;
	}
	public int getArtifactId() {
		return artifactId;
	}
	public void setArtifactId(int artifactId) {
		this.artifactId = artifactId;
	}
	
	public String getArtifactAttributeValue() {
		return artifactAttributeValue;
	}
	public void setArtifactAttributeValue(String artifactAttributeValue) {
		this.artifactAttributeValue = artifactAttributeValue;
	}
	
}
